/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tiebreak.UI;

import java.awt.Container;
import javax.swing.JFrame;
import tiebreak.BL.EasyException;

/**
 *
 * @author kennet
 */
public class ShowMemberFrame extends JFrame
{
    public ShowMemberFrame(int ID) throws EasyException
    {
        MemberDetails m_details = new MemberDetails(ID);
        Container frame = getContentPane();
        frame.add(m_details);
        setSize(getPreferredSize());
        setTitle("Member details for: "+m_details.getMember().getFirstName()+" "+m_details.getMember().getLastName());
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        setVisible(true);
    }
}
